package zzl.reactor;

import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;

/**
 * @ClassName Request
 * @Description 请求
 * @Author zhangzeli
 * @Version 1.0
 * @Date 2019/2/27-17:40
 **/
public class Request {
    private SelectionKey selectionKey;

    private ByteBuffer byteBuffer;

    public SelectionKey getSelectionKey() {
        return selectionKey;
    }

    public ByteBuffer getByteBuffer() {
        return byteBuffer;
    }

    public Request(SelectionKey selectionKey, ByteBuffer byteBuffer) {
        this.selectionKey = selectionKey;
        this.byteBuffer = byteBuffer;
    }
}
